package com.etoak.common.web.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhaochenhao
 * @创建时间 2024/8/12 21:30
 * @version 1.0
 * @描述 ConfigurationProperties(prefix = "image")用来扫描配置文件中前缀问为image的设置,这里指的是在nacos中设置的image,
 * 会自动的将值赋到这上面
 */
@Data
@Component
@ConfigurationProperties(prefix = "image")
public class ImageProperties {

    // location: /Users/zhaochenhao/et2403/upload
    private String location;
    // prefix: /files
    private String prefix;
    // - image/jpeg
    // - image/png
    private List<String> types;
}
